<?php

class Auteur extends Eloquent {

	protected $table = "auteur";
	
	public static $rules= array(
		'nom'=>'required',
		'prenom'=>'required',
		'pays'=>'required|min:30',
		'biographie'=>'required',
		'image'=>'required'
	);
	
	public static function validate($data){
		return Validator::make($data,static::$rules);
	}
}